<template>
	<view>
		登录
		
		<button @click="login">登录</button>
	</view>
</template>

<script setup>
	
	const login=()=>{
		uni.setStorageSync("token","aaaaaaaaaaaaaa");
		
		uni.redirectTo({
			url:"/pages/index/index"
		})
	}
	 
</script>

<style>

</style>
